package com.hutu.erp.catalog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品参数值对象 catalog_product_specification_attribute_mapping
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class SpecificationMapping extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品的商品参数值id */
    private Long mappingId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 商品参数值id */
    @Excel(name = "商品参数值id")
    private Long optionId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String customValue;

    /** 类型 */
    @Excel(name = "类型")
    private Integer attributeType;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer showOnProductPage;

    /** 是否检索 */
    @Excel(name = "是否检索")
    private Integer allowFiltering;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    public void setMappingId(Long mappingId) 
    {
        this.mappingId = mappingId;
    }

    public Long getMappingId() 
    {
        return mappingId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setCustomValue(String customValue) 
    {
        this.customValue = customValue;
    }

    public String getCustomValue() 
    {
        return customValue;
    }
    public void setAttributeType(Integer attributeType) 
    {
        this.attributeType = attributeType;
    }

    public Integer getAttributeType() 
    {
        return attributeType;
    }
    public void setShowOnProductPage(Integer showOnProductPage) 
    {
        this.showOnProductPage = showOnProductPage;
    }

    public Integer getShowOnProductPage() 
    {
        return showOnProductPage;
    }
    public void setAllowFiltering(Integer allowFiltering) 
    {
        this.allowFiltering = allowFiltering;
    }

    public Integer getAllowFiltering() 
    {
        return allowFiltering;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mappingId", getMappingId())
            .append("productId", getProductId())
            .append("optionId", getOptionId())
            .append("customValue", getCustomValue())
            .append("attributeType", getAttributeType())
            .append("showOnProductPage", getShowOnProductPage())
            .append("allowFiltering", getAllowFiltering())
            .append("displayOrder", getDisplayOrder())
            .toString();
    }
}
